package cn.itsource.org.mapper;

import cn.itsource.org.domain.Chart;
import cn.itsource.org.domain.Department;
import cn.itsource.org.query.DepartmentQuery;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

/**
 * spring生成代理mapper实现
 * 
 * mybatis第一天学的
 * 
 * UserMapper userMapper = sqlSession.getMapper(UserMapper.class)
 * sout userMapper.getClass   proxy$14534
 *
 * Mapper映射器
 */
public interface DepartmentMapper extends Mapper<Department> {
    //基础的curd方法由继承得到

    //查询列表
    List<Department> findPage(DepartmentQuery departmentQuery);

    List<Department> findParentDepts();

    List<Chart> findChartData();
}
